function snackInit(){
	$("#snack caption").click(function(){
		$("#snack thead").slideToggle();
		$("#snack tbody").slideToggle();
	}); 
}

function foodMenuInit(){
	var tableList = $("#food_menu_wrap table");
	var length = tableList.length;
	
	for(var i=0; i<length; i++){
		if(tableList[i].className != "food_menu_0"){
			tableList[i].style.display = "none";
		} 
	} 
 
	changeFoodMenu();
}  

function changeFoodMenu(){
	var food_menu_select = $("#food_menu_select")[0];
	
	food_menu_select.onchange = function(){
		var tableList = $("table");
		var length = tableList.length;
		
		for(var i=0; i<length; i++){
			if(tableList[i].className != "food_menu_" + this.value){
				tableList[i].style.display = "none";
			}else{
				tableList[i].style.display = "table";
			} 
		} 
	};
	
}

$(window).load(function() {
	foodMenuInit();
	snackInit(); 
});   